package com.dify.tool.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @author shl
 * @date 2024-06-24
 */
@Getter
@AllArgsConstructor
@ToString
public enum CommonStatus implements BaseStatus {
    SUCCESS("0000", "成功"),
    FAILURE("9999", "服务器内部错误"),
    VALIDATE_ERROR("9901", "参数校验错误"),
    RPC_ERROR("9902", "远程调用失败"),
    NO_AUTH("9903", "权限验证失败"),
    ;

    /**
     * 状态码
     */
    private String code;
    /**
     * 描述
     */
    private String message;

}
